package SeedBank

class Mail {
	
	
	String fromUser;
	String toUser;
	String title;
	String message;
	int toId;
	int fromId;
	
	static belongsTo = [user: User]
	
    static constraints = {
    	toUser(blank:false)
    	title(blank:false)
    	message(blank:false)
    	fromUser(display:false)
    	toId(display:false);
    	fromId(display:false);
    }
    
	String toString(){
		return "${title}, ${fromUser}"
	}

	
}
